ReadHighAndLoop.asm
Language: 8080 Assembly
Last Modified: 2022-11-13 1:21:13 AM UTC
File Size: 690 bytes
Last Modified: 2022-11-13 1:21:13 AM UTC
File Size: 690 bytes
http://www.penguinstew.ca/example/AltairAdder/ReadHighAndLoop.asm
; Read High Value and Loop Program, displays value read from high nibble switches using address lights
ORG 0000H
IN FFH ; 0000: DB FF Read value from switches
RRC ; 0002: 0F Rotate high to low
RRC ; 0003: 0F
RRC ; 0004: 0F
RRC ; 0005: 0F
ANI 0FH ; 0006: E6 0F Clear high part
MOV D, A ; 0008: 57 Move to High register
LP: LDAX D ; 0009: 1A Load (display) address
JMP LP ; 000A: C3 09 00 Jump to display
1
2
3
4
5
6
7
8
9
10
11